home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / ROMDefs.h < prev    next >
Text File  |  1991-04-17  |  5KB  |  102 lines

  1. /************************************************************
  2.  
  3. Created: Sunday, January 6, 1991 at 9:52 PM
  4.     ROMDefs.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1986-1990
  9.         All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __ROMDEFS__
  15. #define __ROMDEFS__
  16.  
  17.  
  18. enum {
  19.  
  20.     appleFormat = 1,                        /*Format of Declaration Data (IEEE will assign real value)*/
  21.     romRevision = 1,                        /*Revision of Declaration Data Format*/
  22.     testPattern = 1519594439,               /*FHeader long word test pattern*/
  23.  
  24.     sCodeRev = 2,                           /*Revision of code (For sExec)*/
  25.     sCPU68000 = 1,                          /*CPU type = 68000*/
  26.     sCPU68020 = 2,                          /*CPU type = 68020*/
  27.     sCPU68030 = 3,                          /*CPU type = 68030*/
  28.     sCPU68040 = 4,                          /*CPU type = 68040*/
  29.     sMacOS68000 = 1,                        /*Mac OS, CPU type = 68000*/
  30.     sMacOS68020 = 2,                        /*Mac OS, CPU type = 68020*/
  31.     sMacOS68030 = 3,                        /*Mac OS, CPU type = 68030*/
  32.     sMacOS68040 = 4,                        /*Mac OS, CPU type = 68040*/
  33.  
  34.     board = 0,                              /*Board sResource - Required on all boards*/
  35.     displayVideoAppleTFB = 16843009,        /*Video with Apple parameters for TFB card.*/
  36.     displayVideoAppleGM = 16843010,         /*Video with Apple parameters for GM card.*/
  37.     networkEtherNetApple3Com = 33620225,    /*Ethernet with apple parameters for 3-Comm card.*/
  38.     testSimpleAppleAny = -2147417856,       /*A simple test sResource.*/
  39.     endOfList = 255,                        /*End of list*/
  40.     defaultTO = 100,                        /*100 retries.*/
  41.  
  42.     sRsrcType = 1                           /*Type of sResource*/
  43. };
  44. enum {
  45.     sRsrcName = 2,                          /*Name of sResource*/
  46.     sRsrcIcon = 3,                          /*Icon*/
  47.     sRsrcDrvrDir = 4,                       /*Driver directory*/
  48.     sRsrcLoadDir = 5,                       /*Load directory*/
  49.     sRsrcBootRec = 6,                       /*sBoot record*/
  50.     sRsrcFlags = 7,                         /*sResource Flags*/
  51.     sRsrcHWDevId = 8,                       /*Hardware Device Id*/
  52.     minorBaseOS = 10,                       /*Offset to base of sResource in minor space.*/
  53.     minorLength = 11,                       /*Length of sResource’s address space in standard slot space.*/
  54.     majorBaseOS = 12,                       /*Offset to base of sResource in Major space.*/
  55.     majorLength = 13,                       /*Length of sResource in super slot space.*/
  56.     sRsrccicn = 15,                         /*Color icon*/
  57.     sRsrcicl8 = 16,                         /*8-bit (indexed) icon*/
  58.     sRsrcicl4 = 17,                         /*4-bit (indexed) icon*/
  59.     sGammaDir = 64,                         /*sGamma directory*/
  60.     sDRVRDir = 16,                          /*sDriver directory*/
  61.  
  62.     drSwApple = 1,                          /*To ask for or define an Apple-compatible SW device.*/
  63.     drHwTFB = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  64.     drHw3Com = 1,                           /*HW ID for the Apple EtherTalk card.*/
  65.     drHwBSC = 3
  66. };
  67. enum {
  68.     catBoard = 1,                           /*Category for board types.*/
  69.     catTest = 2,                            /*Category for test types -- not used much.*/
  70.     catDisplay = 3,                         /*Category for display (video) cards.*/
  71.     catNetwork = 4,                         /*Category for Networking cards.*/
  72.  
  73.     boardId = 32,                           /*Board Id*/
  74.     pRAMInitData = 33,                      /*sPRAM init data*/
  75.     primaryInit = 34,                       /*Primary init record*/
  76.     timeOutConst = 35,                      /*Time out constant*/
  77.     vendorInfo = 36,                        /*Vendor information List. See Vendor List, below*/
  78.     boardFlags = 37,                        /*Board Flags*/
  79.     secondaryInit = 38,                     /*Secondary init record/code*/
  80.     sRsrcVidNames = 65,                     /*Video mode name directory*/
  81.  
  82.     vendorId = 1,                           /*Vendor Id*/
  83.     serialNum = 2,                          /*Serial number*/
  84.     revLevel = 3,                           /*Revision level*/
  85.     partNum = 4,                            /*Part number*/
  86.     date = 5,                               /*Last revision date of the card*/
  87.  
  88.     typeBoard = 0,                          /*Type for board types.*/
  89.     typeApple = 1,
  90.     typeVideo = 1                           /*Type for video types.*/
  91. };
  92. enum {
  93.     typeEtherNet = 1,                       /*Type for ethernet types.*/
  94.     testByte = 32,                          /*Test byte.*/
  95.     testWord = 33,                          /*0021*/
  96.     testLong = 34,                          /*Test Long.*/
  97.     testString = 35                         /*Test String.*/
  98. };
  99.  
  100.  
  101. #endif
  102.